package com.legal.enums;

public enum CommonExceptionEnums {
    UNOWN_ERR(999, "未知错误"),
    //成功的枚举码
    SUCCESS(200, "成功"),

    //即将过期的token
    EXPIRED_TOKEN_ERR(401, "token即将过期"),
    NOLOGIN_ERR(405, "未登录"),
    LOGIN_ERR(406, "出错了，不正确的用户名或密码"),
    USER_LOCKED(409, "该用户已被锁定，无法登录"),
    UNUNIQUE_PHONE_EMAIL(410, "手机号或邮箱已存在"),
    IP_CHANGED_ERR(411, "当前账号在其他地方登录，请重新登录");


    private Integer code;
    private String msg;

    CommonExceptionEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public Integer getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
